<script src="js/date-functions.js" type="text/javascript"></script>
<script src="js/datechooser.js" type="text/javascript"></script>
<form action="admin.php?action=bans" method="post" onSubmit="return confirm('<?= $lang['Confirm'] ?>');">
<input name="id" type="hidden" value="<?= $data['b_id']?>">
<?= $addS?><input name="itemID" type="hidden" value="<?= $data['b_id']?>"><?= $addE?>
<table class="contentTable" border="0">
  <tr>
    <td width="25%" class="tableLabel"><?= $lang['ChampSignupDriver']?></td>
    <td width="75%"  class="tableButtonLeft"><select name="driver" id="driver"><?= $data['driverOptions'] ?></select></td>
  </tr>
  <tr>
    <td width="25%" class="tableLabel"><?= $lang['BanComment']?></td>
    <td width="75%"  class="tableButtonLeft"><input name="comment" type="text" class="controlinput" id="comment" value="<?= $data['b_comment']?>" maxlength="100"></td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['BanStartDate']?></td>
    <td class="tableButtonLeft">
    	<input name="startDate" type="text" class="controlinput2" id="startDate" value="<?= $data['b_startDate'] ?>" maxlength="20" > 
        <img src="<?= $skin_dir?>images/calendar.gif" onclick="showChooser(this, 'startDate', 'chooserStartDate', 2005, 2015, Date.patterns.ISO8601LongPattern, true);">
        <div id="chooserStartDate" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;">
    </td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['BanEndDate']?></td>
    <td class="tableButtonLeft">
    	<input name="endDate" type="text" class="controlinput2" id="endDate" value="<?= $data['b_endDate'] ?>" maxlength="20" > 
        <img src="<?= $skin_dir?>images/calendar.gif" onclick="showChooser(this, 'endDate', 'chooserEndDate', 2005, 2015, Date.patterns.ISO8601LongPattern, true);">
        <div id="chooserEndDate" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;">
    </td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['BanLicense']?></td>
    <td class="tableButtonLeft"><select name="license" id="license"><?= $data['licenseOptions'] ?></select></td>
  </tr>
  <tr>
    <td class="tableLabel"><?= $lang['BanPoints']?></td>
    <td class="tableButtonLeft"><input name="licensePoints" type="text" class="controlinput" id="licensePoints" value="<?= $data['b_licensePoints']?>" maxlength="2"></td>
  </tr>
  <tr>
    <td class="tableLabel"><?= $lang['BanTCleared']?></td>
    <td class="tableButtonLeft"><input name="clearedPoints" type="text" class="controlinput" id="clearedPoints" value="<?= $data['b_clearedPoints']?>" maxlength="2"></td>
  </tr>
   <tr>
    <td class="tableLabel"><?= $lang['BanCleared']?></td>
    <td class="tableButtonLeft"><select name="cleared" id="cleared"><?= $data['clearedOptions'] ?></select></td>
  </tr><?= $addS?>
   <tr>
    <td class="tableLabel"><?= $lang['BanEmailSent']?></td>
    <td class="tableButtonLeft"><?= $data['b_emailSent']?></td>
  </tr><?= $addE?>
  <tr>
    <td colspan="2" class="tableButton"><input  class="controlinput2" name="<?= $submitValue ?>" type="submit" value="<?= $submitText ?>"></td>
  </tr><?= $addS?>
  <tr>
    <td class="tableLabel">&nbsp;</td>
    <td/>
  </tr>
  <tr>
    <td class="tableLabel"><?= $lang['OtherActions']?></td>
    <td class="tableButtonLeft" align="left"><input  class="controlinput2" name="sendEmail" type="submit" value="<?= $lang['BanSendEmail'] ?>"></td>
  </tr><?= $addE?>
</table>
</form>